package src.java.SingleTon;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenbing
 * @date 2021-06-08
 */

public class java8 {
    public static void main(String[] args) {
        List<String> arr = new ArrayList<>();
        arr.add("a");
        arr.add("b");
        arr.add("c");
        List<String> tmp = new ArrayList<>();
        arr.forEach(a->tmp.add(a));
        System.out.println(tmp);
    }
}
